Remove unnecessary eval-when-compile
authorJeremy Bryant <jb@jeremybryant.net>
Wed, 6 Mar 2024 22:48:18 +0000 (22:48 +0000)
committerJustin Burkett <justin@burkett.cc>
Thu, 7 Mar 2024 17:48:08 +0000 (12:48 -0500)
* which-key.el (which-key--ignore-non-evil-keys-regexp):
Remove unnecessary eval-when-compile in regexp-opt.

which-key.el

index 4088032f26ea4ffcea55f8afaa0a6eb86f648b87..af4bc6cb337d8545f827101ec0252b59b175f454 100644 (file)
@@ -707,9 +707,8 @@ Used when `which-key-popup-type' is frame.")
 (defvar which-key--evil-keys-regexp (eval-when-compile
                                       (regexp-opt '("-state"))))
 (defvar which-key--ignore-non-evil-keys-regexp
-  (eval-when-compile
-    (regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
-                  "select-window" "switch-frame" "which-key"))))
+  (regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
+                "select-window" "switch-frame" "which-key")))
 (defvar which-key--ignore-keys-regexp
   (regexp-opt '("mouse-" "wheel-" "remap" "drag-" "scroll-bar"
                 "select-window" "switch-frame" "-state"